cmake_minimum_required(VERSION 3.10)

set(DM2016_DEV ${CMAKE_SOURCE_DIR}/dm_runtime )

include( ${DM2016_DEV}/dm.cmake )

project(dm2016)

if( NOT MSVC)
	set( CPACK_SET_DESTDIR ON )
endif()

set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_PACKAGE_CONTACT "dylan.gao@foxmail.com")
set(CPACK_PACKAGE_DESCRIOTION "DM2016分布式监控平台")

if(MSVC)
	cmake_policy(SET CMP0010 NEW)
	set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
endif()

enable_testing()

add_subdirectory(dm_plat)
add_subdirectory(dm_tools)
add_subdirectory(dm_runtime)

include( CPack )
